package com.mdb.open.common.enums.trade.status;

import com.mdb.bc.api.enums.ApiEnum;

/**
 * @description:还款开放平台状态展示
 * @author: you.yichao
 * @create: 2019-07-01 20:16
 **/
public enum RepaymentOrderWebStatusEnum implements ApiEnum<String> {
    /**
     * 还款开放平台状态展示
     */
    OVER_DUE("逾期待还"){
        @Override
        public RepaymentOrderStatusEnum getRepaymentOrderStatusEnum() {
            return RepaymentOrderStatusEnum.IN_REPAYMENT;
        }

        @Override
        public RepaymentOverdueStatusEnum getOverdueStatusEnum() {
            return RepaymentOverdueStatusEnum.IS_OVERDUE;
        }
    },
    NORMAL("正常待还"){
        @Override
        public RepaymentOrderStatusEnum getRepaymentOrderStatusEnum() {
            return RepaymentOrderStatusEnum.IN_REPAYMENT;
        }

        @Override
        public RepaymentOverdueStatusEnum getOverdueStatusEnum() {
            return RepaymentOverdueStatusEnum.NORMAL;
        }
    },

    ;

    RepaymentOrderStatusEnum repaymentOrderStatusEnum;

    public RepaymentOrderStatusEnum getRepaymentOrderStatusEnum() {
        return repaymentOrderStatusEnum;
    }

    RepaymentOverdueStatusEnum overdueStatusEnum;

    public RepaymentOverdueStatusEnum getOverdueStatusEnum() {
        return overdueStatusEnum;
    }

    private String text;

    RepaymentOrderWebStatusEnum(String text) {
        this.text = text;
    }

    @Override
    public String getValue() {
        return name();
    }

    @Override
    public String getText() {
        return this.text;
    }
}
